package com.cookie.libnetwork;

/**
 * 项目名:    CookieJoke
 * 包名:      com.cookie.libnetwork
 * 文件名:    GetRequest
 * 创建者:    cookie
 * 创建时间:   2020/2/29 0:01
 * 描述:      TODO
 */

public class GetRequest<T> extends Request<T, GetRequest> {

    public GetRequest(String url) {
        super(url);
    }

    @Override
    protected okhttp3.Request generateRequest(okhttp3.Request.Builder builder) {
        okhttp3.Request request = builder.get().url(UrlCreator.createUrlFromParams(mUrl, params)).build();
        return request;
    }
}
